﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfAppTest.Dao.DB
{
    //100
   public class CS9DBContext : DbContext
    {
        public CS9DBContext(string connectionString) : base(new DbContextOptionsBuilder<CS9DBContext>()
                                                               .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString))
                                                               .Options)
        {

        }
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
        }
    }
    //101
    public class CS9DBContext2 : DbContext
    {
        public CS9DBContext2(string connectionString) : base(new DbContextOptionsBuilder<CS9DBContext2>()
                                                               .UseMySql(connectionString, ServerVersion.AutoDetect(connectionString))
                                                               .Options)
        {

        }
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
        }
    }
}
